Implement legacy XML-RPC interface for ACM commands.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Dec 2007 09:44:20 +0000 (09:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Dec 2007 09:44:20 +0000 (09:44 +0000)
commit0ea4d2fb34ca99021271c8c16e8b3d87af3c5611
treeb327efb2975bf3306c2e29c6baf3a1b4253bb83f
parentc568950276dd795803aab37ba4770288455e3451
Implement legacy XML-RPC interface for ACM commands.

This patch implements a (non Xen-API) legacy XML-RPC interface for the
ACM commands and funnels the calls into code introduced by the Xen-API
support for ACM security management. Since some of the functionality
has changed, also the xm applications have changed. In particular the
following old commands have been removed along with some tools the
have become obsolete now:

- loadpolicy    (included in: setpolicy)
- makepolicy    (included in: setpolicy)
- cfgbootpolicy (included in: setpolicy)

and the following commands been introduced:

- setpolicy
- getpolicy
- resetpolicy

All tools have been adapted to work in Xen-API and legacy XML-RPC
mode. Both modes support the same functionality.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
32 files changed:
docs/man/xm.pod.1
tools/python/xen/util/acmpolicy.py
tools/python/xen/util/xsm/acm/acm.py
tools/python/xen/util/xsm/dummy/dummy.py
tools/python/xen/util/xsm/flask/flask.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/XendXSPolicyAdmin.py
tools/python/xen/xend/server/XMLRPCServer.py
tools/python/xen/xm/activatepolicy.py [deleted file]
tools/python/xen/xm/addlabel.py
tools/python/xen/xm/cfgbootpolicy.py [deleted file]
tools/python/xen/xm/create.py
tools/python/xen/xm/dry-run.py
tools/python/xen/xm/getlabel.py
tools/python/xen/xm/getpolicy.py
tools/python/xen/xm/labels.py
tools/python/xen/xm/loadpolicy.py [deleted file]
tools/python/xen/xm/main.py
tools/python/xen/xm/makepolicy.py [deleted file]
tools/python/xen/xm/resetpolicy.py [new file with mode: 0644]
tools/python/xen/xm/resources.py
tools/python/xen/xm/rmlabel.py
tools/python/xen/xm/setpolicy.py
tools/security/Makefile
tools/security/policies/example/client_v1-security_policy.xml
tools/security/policies/example/ste/client_v1-security_policy.xml [deleted file]
tools/security/secpol_xml2bin.c [deleted file]
tools/security/secpol_xml2bin.h [deleted file]
tools/xm-test/lib/XmTestLib/acm.py
tools/xm-test/tests/security-acm/01_security-acm_basic.py
tools/xm-test/tests/security-acm/acm_utils.py